package com.yy.comdemo.controller

import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.yy.comdemo.page.BMapPage
import com.yy.comdemo.page.MockLocationPage

enum class NavRoute(val path:String, val pageName:String) {
    MOCK_LOCATION("MockLocationPage", "模拟定位"),
    BMAP("BMapPage", "百度地图"),
}

@Composable
fun CustomNavHost (navController: NavHostController) {
    NavHost(navController = navController, startDestination = NavRoute.MOCK_LOCATION.path) {
        composable(route = NavRoute.MOCK_LOCATION.path) {
            MockLocationPage(navController)
        }
        composable(route = NavRoute.BMAP.path) {
            BMapPage(navController)
        }
    }
}